i already added the javascript in PHP doc but its nt wrking
Posted: Mon Jul 30, 2007 10:29 am
feyd | Please use
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.
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
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>i dont know whats wrong.
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
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]