Need help with a bit of code

ajpis

Regular Member
Joined
Aug 5, 2013
Messages
242
Reaction score
368
I only have basic coding knowledge so this may seem as a bit of a silly question for some people on here.

This code redirects my visitors to another url after so many seconds

Code:
<meta http-equiv="refresh" content="0; url=http://mysite.com" />

Can anyone help me adapt this piece of code so that it will open a new url in a new window instead.

Thanks in advance
 
I really appreciate all the quick answers, just in case anyone else ever needs to know I had to replace the code with the following:

Code:
<script type="text/javascript">window.open('http://mysite.com');</script>
 
I really appreciate all the quick answers, just in case anyone else ever needs to know I had to replace the code with the following:

Code:
<script type="text/javascript">window.open('http://mysite.com');</script>
You should also set a timer for this code to open a new windows in certain seconds.
 
<meta http-equiv="refresh" target="_blank" content="0; url="yoururl" />
 
JavaScript might not be enabled for everyone (for most people it is, though)

I really appreciate all the quick answers, just in case anyone else ever needs to know I had to replace the code with the following:

Code:
<script type="text/javascript">window.open('still.cant.post.links.damnit');</script>
 
Back
Top