Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
C#
I need to call body tag using document.getElementBy.But i did not like to class or id for body tag.just it is normal<body> tag.please give me solution.


What I have tried:




document.getElementBy(need to know which tag here i am need not class or id for body tag)('body');
Posted
Updated 29-Dec-16 1:19am

1 solution

How about document.body[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900