PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i already added the javascript in my page and i saved it as .PHP, but the messagebox that i created is not working.
the code is like this
[syntax="html"]
[b]<script language="javascript" type="text/javascript">
function disp_alert()
{
alert("I am an alert!!");
}
</script>[/b]</head>
<body>
<div class="style9" id="Layer17">
<p>Direction:Identify the type of sentence according to structure of the sentences given below.</p>
<p>1. Ottawa is the capital of Canada, but Toronto is the capital of Ontario. </p>
<form id="form1" name="form1" method="post" action="">
<label>
a.
</label>
[b]<input name="submit" type="submit" value="Simple Sentence" onlick="disp_alert()" />[/b] </form>
<p> </p>
<p>
<label></label><label></label>
</p>
<label></label>
</div>
in this code a button will trigger the event to display the msgbox. i've tried it in a simple php webpage it work but when i tried it in a much complicated one, its not working.
i dont know whats wrong.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
One day we'll be able to use onLick(). Monitors will have "taste-o-vision", and we'll be able to lick the screen to taste things before buying them, it'll be a boon to online grocery shopping.
onion2k wrote:One day we'll be able to use onLick(). Monitors will have "taste-o-vision", and we'll be able to lick the screen to taste things before buying them, it'll be a boon to online grocery shopping.
And porn.
Time to turn on SafeSearch filtering for Google Images.