|
This is what I want to do.
function nav() {
if ( event.srcElement.(get the class name) == "article" ) {
var form = "<form name=`form` method=`post` action=`article.php`>";
form += "<input type=`hidden` name=`ARTICLE` value=`" + article id + " />";
form += </form>
document.write(form);
form.submit;
}
else if ( event.srcElement.(get the class name)!= "article" && ( it is a link tag ) ) {
( navagate to the link );
}
}
|
|
|
|
|
|
|
|