Question:

How to call a javascript function in one html file from another html file ??

by  |  earlier

0 LIKES UnLike

i.e page 1

<html>

<head>

<script>

function callme(){

}

</script>

</head>

</html>

i want to call this function callme in page 2 without using js file techniq

 Tags:

   Report

2 ANSWERS


  1. Sorry, you can’t. unless the second page was open from the first page, write the following java script  in the second page :

    window.opener.Callme();


  2. You can&#039;t. The two pages do not know about each other.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions