DOM and BOM

|| BOM (Browser Object Model)
	The BOM (Browser Object Model) consists of the objects navigator, history, screen, location
		navigator	-> The navigator object contains information about the browser.
		history		-> The history object contains the URLs 
		screen		-> The screen object contains information about the visitor's screen.
		location	-> The location object contains information about the current URL.
		
|| Dom 
	what is dom?
	The DOM is an API (application programming interface). 
	যেটি  একটি ডকুমেন্টের কাঠামো, ধরণ ও কনটেন্টকে পরিবর্তন করে।
	
	when is creates?
	When a web page is loaded, the browser creates a Document Object Model of the page.
	
	how you can use the document object ?
		-> Finding HTML Elements
			document.getElementById(id)
			
		-> Changing HTML Elements
			element.innerHTML =  new html content
		
		-> Adding and Deleting Elements
			document.createElement(element)
			document.removeChild(element)
			
	

Advertisements