Sunday 30 September 2018

javascript: pseudo-protocol

Just like how you specify protocol like http://, ftp:// you can also specify javascript: in the markup. Only new browsers has support of this.

<a href="javascript:popUp('https://self-learning-java-tutorial.blogspot.com/2016/05/java-home-page.html');">Java Tutorial</a>

pseudo.html

<!DOCTYPE html>

<html>

<head>
    <title>Pseudo protocol</title>

</head>

<body>
    <a href="javascript:popUp('https://self-learning-java-tutorial.blogspot.com/2016/05/java-home-page.html');">Java Tutorial</a>

</body>

</html>


Previous                                                 Next                                                 Home

No comments:

Post a Comment