Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Try

Wrap your code in $(document).ready(function(){...}

$(document).ready(function(){ $('.test').click(); }); 

Update

Read Open a URL in a new tab (and not a new window)Open a URL in a new tab (and not a new window)

.click() and .trigger('click') will execute the functions which are attached to the click event.

Try

Wrap your code in $(document).ready(function(){...}

$(document).ready(function(){ $('.test').click(); }); 

Update

Read Open a URL in a new tab (and not a new window)

.click() and .trigger('click') will execute the functions which are attached to the click event.

Try

Wrap your code in $(document).ready(function(){...}

$(document).ready(function(){ $('.test').click(); }); 

Update

Read Open a URL in a new tab (and not a new window)

.click() and .trigger('click') will execute the functions which are attached to the click event.

added 111 characters in body
Source Link

TryTry

Wrap your code in $(document).ready(function(){...}

$(document).ready(function(){ $('.test').click(); }); 

Update

Wrap your code inRead Open a URL in a new tab (and not a new window)

$.click(document) and .ready(functiontrigger('click'){...} will execute the functions which are attached to the click event.

$(document).ready(function(){ $('.test').click(); }); 

Try

Wrap your code in $(document).ready(function(){...}

$(document).ready(function(){ $('.test').click(); }); 

Try

Wrap your code in $(document).ready(function(){...}

$(document).ready(function(){ $('.test').click(); }); 

Update

Read Open a URL in a new tab (and not a new window)

.click() and .trigger('click') will execute the functions which are attached to the click event.

Source Link

Try

Wrap your code in $(document).ready(function(){...}

$(document).ready(function(){ $('.test').click(); });