Why this does not work in Mozilla?
<input type="button" name="cancel" value="Cancel" class="button"
onClick="location.href('page.php?m=per');">
| SitePoint Sponsor |
Why this does not work in Mozilla?
<input type="button" name="cancel" value="Cancel" class="button"
onClick="location.href('page.php?m=per');">
1) Any chance you can give us a link to a page demonstrating the problem?
2) what, exactly, do you expect it to do?
gav
http://www.livejournal.com/users/blufive/
browser stats analysis and comment:
http://www.livejournal.com/community/stats_weenie/
After click new page should be loaded (page.php)
In IE it works and nothing happened in Mozilla
(click and nothing happened)
Try amendingtoHTML Code:onClick="location.href('page.php?m=per');"
IE lets you use a shortcut to get at the location, Moz probably wants you to access it properly via the window object.HTML Code:onClick="window.location.href='page.php?m=per';"
gav
http://www.livejournal.com/users/blufive/
browser stats analysis and comment:
http://www.livejournal.com/community/stats_weenie/
Thaks. Solved.
location.href('page.php?m=per'); - not works
location.href='page.php?m=per';- works
Bookmarks