JavaScript

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

I went looking for an example of javascript which would open up a new
window. I found this....

<A onclick="popup = window.open('Scorecard.aspx', 'View Scorecard') return
false;" href='ReadOnlyScorecard.aspx' target='_blank'>View Scorecard </A>

When I run it, it tells me it was expecting a ";", when the page is loaded.
The link does indeed open a new browser, but How do I get rid of the script
error? I am as green as can be about Javascript...

Thanks inadvance for your assistance!!!!!
 
.....'View Scorecard');return false;" href=....


_____________________________________________________________
B&D Technologies
http://www.bd-tech.com
Antoni Biliardis - antoni(at)bd-tech.com

O/H Jim Heavey Ýãñáøå:
 
Jim said:
I went looking for an example of javascript which would open up a new
window. I found this....

<A onclick="popup = window.open('Scorecard.aspx', 'View Scorecard') return
false;" href='ReadOnlyScorecard.aspx' target='_blank'>View Scorecard </A>

When I run it, it tells me it was expecting a ";", when the page is loaded.
The link does indeed open a new browser, but How do I get rid of the script
error? I am as green as can be about Javascript...

This really isn't an ASP.NET question - there are more suitable
newsgroups for JavaScript queries...

Anywho, try adding a ; after the ).

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 
Back
Top