Server IP : 103.6.199.200 / Your IP : 3.15.228.162 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/tradepan/8888draw.com/wwwroot/ |
Upload File : |
<%@ page language="C#" autoeventwireup="true" inherits="test, App_Web_em78dy-v" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> function getValue() { var x1=document.getElementById("TextBox1"); x1.value = "3434343"; x1.style.background = "#FFF000"; x1.style.borderStyle = "Double"; var x=document.getElementById("myHeader"); alert(x.innerHTML) } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> <asp:TextBox ID="TextBox1" runat="server" BackColor="Transparent" BorderStyle="None"></asp:TextBox> <h1 id="myHeader" onclick="getValue()">This is a header</h1> <p>Click on the header to alert its value</p> </div> </form> <script type="text/javascript"> $(document).ready(function(){ var frm_element = document.getElementById('TextBox1'); frm_element.value = "1234"; var x=document.getElementById("Label1") x.text = "3434343"; //var vis = frm_element.style; // vis.display = 'block'; }); </script> </body> </html>