Chat freely about the open source Javascript projects for ESP8266

User avatar
By forlotto
#37360 I am trying to create a dynamic web page that would insert the IP into the page where the IP is called in the code below:

EDIT UPDATED CODE TO REFLECT THE CHANGE!!!
Code: Select all</script>
<script language="JavaScript"> IP = prompt("Please enter IP of Device", "");
document.write("<p></p>Page is now custom for " + IP + ", Enjoy.");
</script>


I am not sure exactly where I am going wrong with the syntax or if I need to declare the value as an html variable and then work from there or what needs to be done ...

Any help would be appreciated!

Thanks