Welcome visitor
* Login
* Register
It is currently March 24th, 2019, 2:51 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  problem with open window
PostPosted: May 12th, 2009, 10:04 pm 
User avatar

Posts: 61
Webpage error details

Quote:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 12 May 2009 17:47:32 UTC


Message: Expected ')'
Line: 10
Char: 37
Code: 0

<input type="button" value="Click it" onclick="window.open('http://www.address.com';'_blank');" />
i have this simple javascript line and i dont know why is giving me that error in IE. Firefox doesnt give an error but it doesnt work either.


Top
 Profile  
 
  Re: problem with open window
PostPosted: May 12th, 2009, 10:19 pm 
User avatar

Posts: 79
onclick="window.open('url','_blank');"

, instead of ;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron