![]() |
Java Script Button
what is the code for a button with a link in java script?
|
Is it even possible to make a button with a hyperlink in java script?
|
:
<script type='text/javascript'> |
Will that run? iHateU() isn't defined 'till after it is referenced?
|
It won't.
|
I didn't evaluate that code for workability. Javascript functions do not have to be declared before they're referenced. They DO have to be declared before they're invoked.
|
*nods*
|
I would personally just do this:
:
<form action="http://www.example.com/" method="post"> |
I would use PHP and just do this...
[php] <?php // I have no idea if this is an actual site... header("Location: http://www.gaysex4u.com"); ?> [/php] |
This could be done in just html
HTML: :
<form> |
| All times are GMT -5. The time now is 2:19 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC