My problem is that I want to take the value of a text field from one HTML page to another one.
According to the following code, at the first page, I can get the value of the sms_name text field by using onclick attribute. But I can not get access to that at the other page.
I used many solutions but no success until now.
HTML file #1:
<div style="width:100%;height:34%;;margin-top:20%" >
    <div class="message-onclick"  onclick="
        var sms_name= document.getElementById('recepient-name').value;
        alert(sms_name);
    "> </div>
</div>
HTML file #2:
<div class="log-divs" style="height:7%;border:1px solid red" onclick="
    alert(sms_name); ">
</div>
 
     
     
     
    